<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="multipart/form-data; charset=utf-8" />
    <title>灵感库</title>
    <link rel="stylesheet" type="text/css" href="css/z-UI.tab.css"/>

    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/jquery-table/jquery.table.js"></script>
    <link rel="stylesheet" href="js/jquery-table/css/jquery-table-default.css" />
    <link rel="stylesheet" href="js/jquery-table/css/jquery-table-admin.css" />

    <style>
		html,body{
            width: 100%;height: 100%;
            margin:0;background-color: white;
        }
        .zUI-bar .content .wrap { padding: 10px }
        .button { padding: 2px 10px; }
        .zUI-bar input{ padding: 5px  }
        .oneCategoryText { display: inline-block; padding: 10px 20px;background-color: #dfd8bc;margin-right: 10px;font-size: 15px;     border-style: solid; border-width: 0px; }
        .oneCategoryDiv { padding: 20px 10px;  }

        .twoCategoryDiv {      padding: 20px 10px;  }
        .twoCategoryText { padding: 3px 10px;background-color: #e8e8e8;margin-right: 6px;font-size: 10px; border-style: solid; border-width: 0px; }

        .tagSpan{ margin-top: 10px; display: inline-block; background-color: #e8e8e8;padding: 3px 8px;margin-left: 5px;   border-style: solid; border-width: 0px;}
        .contentText{ font-size: 16px; border: 1px #000 solid; border-radius: 5px;padding: 5px  10px;     overflow: hidden; max-height: 115px; }

        .contentTagSpan:hover{ background-color: #dbdbdb; }
        .contentButton { margin-top: 10px }
        .contentDesc { padding: 0px  10px 5px 5px }
        .selectCategoryDiv {  padding: 20px 10px; border: 1px #000 solid;}
        .selectCategoryText { padding: 3px 10px;background-color: #e8e8e8;margin-right: 6px;font-size: 14px;border-style: solid;border-width: 0px; }


    </style>

</head>
<body  >
    <div style="width: 100%; overflow-y: auto;box-sizing: border-box;padding: 30px;display: inline-flex">
        <div style="margin: 5px;">
            <div class="zUI-bar line md" id="tab1">
                <div class="bar-box">
                    <div class="nav "  onclick="location.href = '/index.html'">
                        内容展示
                    </div>
                    <div class="nav" onclick="location.href = '/tag.html'">
                        标签管理
                    </div>
                    <div class="nav " onclick="location.href = '/category.html'">
                        分类管理
                    </div>
                    <div class="nav active" onclick="location.href = '/content.html'">
                        内容管理
                    </div>
                    <div class="nav" onclick="location.href = '/system.html'">
                        系统管理
                    </div>
                </div>
                <div class="content" id="catagoryDiv">
                    <div style="margin-bottom: 10px;">
                        <h3>分类选择</h3>
                        <span class="tip">双击二级标签选中</span>

                        <div  class="oneCategoryDiv">
                        </div>

                        <div  class="twoCategoryDiv">
                        </div>


                        <div  class="selectCategoryDiv">
                        </div>
                        <button onclick="$('.selectCategoryText[isSelect=\'true\']').remove()" >删除</button>
                        <button onclick="$('.selectCategoryDiv').html('');">清空标签</button>
                    </div>

                    <div>
                        <h3>标签</h3>
                        <div>
                            <p style="padding: 20px 10px;">
                                <input type="text" id="searchTagName" placeholder="输入搜索标签"/>
                                <button onclick="searchTag()" >搜索</button>
                            </p>

                            <div id="tagSearchDiv" style=" padding: 20px 10px; border: 1px #000 solid;">
                            </div>
                        </div>
                    </div>

                    <div>
                        <h3 style="padding: 20px 0px;">内容</h3>
                        <div>
                            <div>
                                <textarea id="add_c_name" placeholder="输入内容" style="width: 100%; height: 60px;"></textarea>
                                <input type="text" id="add_c_desc" placeholder="输入描述" style="width: 100%; height: 60px;"/>
                                <button onclick="addContent()">添加</button>
                            </div>

                        </div>
                    </div>


                    <div>
                        <h3 style="padding: 20px 0px;     margin-top: 70px;">修改内容</h3>
                        <div>
                            <div>
                                <button onclick="loadContent()">加载内容</button>
                                <input type="text" id="upd_c_id"  placeholder="修改的内容id"/>
                                <input type="text" id="upd_c_desc" placeholder="内容说明" style=""/>
                                <input type="text" id="upd_category" placeholder="输入引用的二级分类id,用逗号隔开" style=""/>
                                <input type="text" id="upd_tag" placeholder="输入引用的标签id,用逗号隔开" style=""/>
                                <button onclick="updContent()">修改</button>
                                <textarea id="upd_c_name" placeholder="输入内容" style="width: 100%; height: 60px;"></textarea>

                            </div>

                        </div>
                    </div>


                    <div>
                        <h3 style="padding: 20px 0px;     margin-top: 70px;">导入</h3>
                        <div>
                            <div>
                                <input type="file" id="uploadFile" />
                                <button onclick="importExcel()">导入</button>
                            </div>

                        </div>
                    </div>

                    <div>
                        <h3 style="padding: 20px 0px;">删除内容</h3>
                        <div>
                            <div>
                                <input type="text" id="del_c_id" placeholder="删除的内容id"/>
                                <button onclick="delContent()">删除</button>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
    <!-- 编辑器源码文件 -->
        <!-- 编辑器源码文件 -->
<!--        <script type="text/javascript" src="/kindeditor/kindeditor-all-min.js"></script>-->
        <script type="text/javascript" src="/kindeditor/kindeditor-all.js"></script>
        <script charset="utf-8" src="/kindeditor/lang/zh-CN.js"></script>

    <script type="text/javascript" src="js/content.js"></script>
</html>